home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-07 / lanscrip.zip / LOGIN.BAT < prev    next >
DOS Batch File  |  1992-03-16  |  2KB  |  63 lines

  1. @echo off
  2. REM Opgepast deze script werkt alleen op XBART
  3. :start
  4. set net_error=???
  5.  
  6. net/noerror logout server
  7.  
  8. net/noerror login \\server bdv b
  9. if errorlevel==1 goto error
  10. rem @echo LOCAL PASSWORD (Enter for none)
  11. net/noerror login \\xbart bdv b
  12.  
  13. net/noerror clock \\server
  14. net/noerror use k: \\server\user-%usr%
  15. net/noerror use l: \\server\tmp
  16. net/noerror use m: \\server\cds_sys
  17.  
  18. if not exist m:\groeplvg\%usr%.xxx goto verder
  19. echo Sending files to your station PLEASE WAIT (LUDO)
  20. copy m:\autoldl\*.* c:\cds_sys >nul 
  21. del m:\groeplvg\%usr%.xxx >nul
  22.  
  23. :verder
  24. if exist m:\groeplvg\exe%usr%.xxx goto cont
  25. if exist m:\groepbdv\exe%usr%.xxx goto conti
  26. goto continue
  27.  
  28. :cont
  29. echo "Executing script upon System Administrators request PLEASE WAIT"
  30. copy m:\autoexe\exe.bat c:\ >nul
  31. call c:\exe.bat
  32. del m:\groeplvg\exe%usr%.xxx
  33. goto verder
  34.  
  35. :conti
  36. echo "Executing script upon System Administrators request PLEASE WAIT"
  37. copy m:\autoexe\exe.bat c:\ >nul
  38. call c:\exe.bat
  39. del m:\groepbdv\exe%usr%.xxx
  40.  
  41.  
  42. :continue
  43. if not exist m:\groepbdv\%usr%.xxx goto goon
  44. echo "Sending files to your station PLEASE WAIT (BART)"
  45. copy m:\autoldb\*.* c:\dos5 >nul 
  46. del m:\groepbdv\%usr%.xxx >nul
  47.  
  48. :goon
  49. net/noerror use i: \\server\celdsinc
  50. net/noerror use j: \\server\allerlei
  51. goto ok
  52.  
  53. :error
  54. @echo ╔═══════════════════════════════════════════╗
  55. @echo ║ Verkeerd paswoord of je bent al ingelogd. ║
  56. @echo ╚═══════════════════════════════════════════╝
  57. goto start
  58.  
  59. :ok
  60. @echo            JE NAAM IS %naam%
  61. @echo       Om uit te loggen typ je "LOGOUT"
  62.  
  63. :einde